package com.kmb.business;

/**
 * 系统常量
 * 
 * @author
 */
public class Constants
{
    /** 查询条件 格式时间到时分秒 */
    public static final String FORMAT_HMS = " 00:00:00";
    /** 查询条件 格式时间到时分秒 */
    public static final String FORMAT_HMS_END = " 23:59:59";

    /** 年 格式化 */
    public static final String YEAR_MONTH = "yyyy-MM";
    /** 日期 格式化 */
    public static final String DATE = "yyyy-MM-dd";
    /** 日期时间 格式化 */
    public static final String TIMESTAMP = "yyyy-MM-dd HH:mm:ss";
    /** 日期时间 格式化 */
    public static final String TIMESTAMPNOW = "yyyyMMddHHmmss";
    public static final long NUMBER_OF_TIME = 1000L;
    /** 日期时间 格式化 */
    public static final String DATENOG = "yyyyMMdd";
    /** 日期时间 格式化 */
    public static final String TIMESTAMP_MS = "yyyy-MM-dd HH:mm:ss.SSS";
    /** 时间 格式化 */
    public static final String TIME = "HH:mm:ss";

    /** 徐汇身份证号码前六位 */
    public static final String XUHUI_CODE = "310104";


    public static final String  RECORDER = "70009";
    /** -1：停止；0-未开始；1-运行中；2-已过期；3-排队中；4-异常 */
    public final static String VIDEO_TASKSTATUS_STOP = "-1";
    public final static String VIDEO_TASKSTATUS_UN_START = "0";
    public final static String VIDEO_TASKSTATUS_RUNNING = "1";
    public final static String VIDEO_TASKSTATUS_OVER_TIME = "2";
    public final static String VIDEO_TASKSTATUS_QUEEN = "3";
    public final static String VIDEO_TASKSTATUS_EXCEPTION = "4";

    public final static String WEIXIN_NEIWANG_URL_PREFIX = "https://mperson.gaj.sh.gov.cn";
    public final static String WEIXIN_NEIWANG_URL_PREFIX1 = "https://shgzry.gaj.sh.gov.cn";
//    https://shgzry.gaj.sh.gov.cn/back/yryd/service/api/mobile/query/previewPhotoStream?mediaId=1Y-N2QPpmG-wX2FDZ_NZjgvJNy2v404fK6DaiSCqg_0VPEOEA0Evu1DmkdOtyKTL2&token=qeV7Eii-pHvXeyPjPprCYXeq1b7Ji0wrJR4oEIPmexg
//    https://mperson.gaj.sh.gov.cn/back/yryd/service/api/mobile/query/previewPhotoStream?mediaId=10tKECR0Opfnn18QO-pzSq2BPk73k24p5d75tx7F34ne5D6vfYGv9YqdZIAOdYqUI&token=alXRKN7ckkJbS7UFbvNMGAtty1DciEEAiP8nsB5Z7ME
//    //http://15.75.14.38:8080
//    http://15.75.18.101:8080/back/yryd/service/api/mobile/query/previewPhotoStream?mediaId=1JOAm8O0xW2ETMD4OoB4MFk2-oo1KH2nkZLQlcpWM3cZJzM5j19MyoWLO1t6MSsGQ&token=qeV7Eii-pHvXeyPjPprCYXeq1b7Ji0wrJR4oEIPmexg
    public final static String WEIXIN_WAIWANG_URL_PREFIX = "http://15.128.16.233:8081";

    public final static String WEIXIN_WAIWANG_URL_PREFIX1 = "http://15.75.18.101:8080";


    public final static String TYPE_PICTURE = "picture";
    public final static String TYPE_RECORD = "record";
    public final static String TYPE_VIDEO = "videostruct";

    public static final String ORGCODE = "orgCode";

    public static final String TERMINAL_ID="0:0:0:0:0:0:0:1";

    public static final double VALID_DISTANCE = 1500;
    //数字常量
    public static class ConstNumber{
        //JSONResult类-数字常量
        public static final int ERROR_MSG_CODE = 500;
        public static final int ERROR_MAP_CODE = 501;
        public static final int ERROR_EXCEPTION_CODE = 555;
        public static final int SUCCESS_CODE = 200;
        //ApplicationStartupRunner类需要的数字常量
        public static final int PAGE_SIZE = 10000;
        //QueryMessage类-数字常量 SUCCESS_CODE
        //CasConfigure类-数字常量
        public static final int ORDER_TWO = 2;
        public static final int ORDER_THREE = 3;
        public static final int ORDER_FOUR = 4;
        //FileUtils类-数字常量
        public static final int CONNECT_TIMEOUT = 5000;
        public static final int MEMORY_CHANGE_STANDAR = 1024;
        public static final int NUMBER_TWO = 2;
        //KafkaConsumerConfig类-数字常量
        public static final int POLL_TIMEOUT = 1500;
        //ReadEarthMsgConsumer类-数字常量
        public static final int CORE_POOL_SIZE = 5;
        public static final int MAXIMUM_POOL_SIZE = 10;
        public static final int CAPACITY = 10;
        public static final int DT = 30000;
        public static final int NUMBER_ONE_THOUSAND = 1000;
        //WebSocketFrameHandler类-数字常量 SUCCESS_CODE
        //WebSocketServer类-数字常量
        public static final int MAX_CONTENT_LENGTH = 655360;
        public static final int MAX_FRAME_SIZE = 655360;
        //ZZKWebSocketServerProtocolHandler类-数字常量
        public static final int ZZ_MAX_FRAME_SIZE = 65536;
        //ZZKWebSocketServerProtocolHandshakeHandler类-数字常量 SUCCESS_CODE
        //FhDeviceUpLocation类-数字常量
        public static final int FHDEVICEUPLOCATION_CAPACITY = 20;
        public static final int FHDEVICEUPLOCATION_CORE_POOL_SIZE = 5;
        //MD5Util类-数字常量
        public static final int MD5UTIL_PLUS_NUMBER = 256;
        public static final int MD5UTIL_DIVIDED = 16;
    }

    /**警情统计相关常量*/
    public static final String ALARM_STATISTICS = "queryAlarmStatistics";
    //public static final String ALARM_STATISTICS_HANDLED = "handled";
    //public static final String ALARM_STATISTICS_HANDING = "handling";
    public static final String ALARM_STATISTICS_WEEK = "week";
    public static final String ALARM_STATISTICS_MONTH = "month";
    public static final String ALARM_STATISTICS_QUARTER = "quarter";

    /**依图视频结构化相关url*/
    public static final String YITU_VIDEO_STRUCT_SOURCE_OFFSET = "0";
    public static final String YITU_VIDEO_STRUCT_SOURCE_LIMIT = "10000";
    public static final String YITU_VIDEO_STRUCT_CAMERA_STATUS_DEL = "0";//摄像头删除状态--已删除（只用于数据更新时生效）
    public static final String YITU_VIDEO_STRUCT_CAMERA_STATUS_USE = "1";//摄像头删除状态--使用中（只用于数据更新时生效）
    public static final String YITU_TASK_DEVICE_RELATE = "yitu:subscribeId:";//依图摄像头对应着任务id，用于推送至前端页面
    public static final String YITU_VIDEO_DICTIONARY = "yitu:dictionary:";//依图结构化对应数据字典缓存


    /**逻辑删除状态码值*/
    public static final String ZHI_HUI_STATUS_DELETE = "0";//逻辑删除
    public static final String ZHI_HUI_STATUS_USE = "1";//逻辑未删除

    /**NETPOSA_CAMERA摄像头信息 表中 数据来源*/
    public static final String NETPOSA_CAMERA_SOURCETYPE_READEARTH = "1";//地听
    public static final String NETPOSA_CAMERA_SOURCETYPE_WANGLI = "2";//网力
    public static final String NETPOSA_CAMERA_SOURCETYPE_YITU = "3";//依图

    /**网力每20分钟取一次tokenId参数*/
    public static final String VIDEO_STRUCT_USERNAME="fenghuo";
    public static final String VIDEO_STRUCT_PASS_WORD="6a2274dee8e1cc8bde67fc8d629dfadb";

    /**app上下班状态位 1 上班  2 下班*/
    public static final String APP_START_WORK = "1";//上班
    public static final String APP_END_WORK = "2";//下班

    /**DS警情的一些状态码值字典*/
    public static final String DS_ALARM_SJZT_MAP = "dsAlarm:dictionary:sjzt";//事件状态
    public static final String DS_ALARM_BJFS_MAP = "dsAlarm:dictionary:bjfs";//报警方式
    public static final String DS_ALARM_CJZT_MAP = "dsAlarm:dictionary:cjzt";//处警单状态
    public static final String DS_ALARM_ZLZT_MAP = "dsAlarm:dictionary:zlzt";//指令状态
    public static final String DS_ALARM_FKLX_MAP = "dsAlarm:dictionary:fklx";//反馈类型字典
    public static final String DS_ALARM_DW_MAP = "dsAlarm:dictionary:dw";//单位字典
    public static final String DS_ALARM_BJAY_MAP = "dsAlarm:dictionary:bjay";//案由字典
    public static final String DS_ALARM_BJXL_MAP = "dsAlarm:dictionary:bjxl";//细类字典
    public static final String DS_ALARM_BJLB_MAP = "dsAlarm:dictionary:bjlb";//类别字典
    public static final String DS_ALARM_BJLX_MAP = "dsAlarm:dictionary:bjlx";//类型字典
    public static final String DS_ALARM_JQZT_MAP = "dsAlarm:dictionary:jqzt";//接报信息-警情状态

    /**执法仪视频列表信息相关常量*/
    public static final String RECORDER_TXT_MARK = "RECORDER_VIDEO_INFO.txt";//接报信息-警情状态

}
